package cn.ztydata.teachingsystem.heaven.web.dto;

import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 模块信息dto类
 * Created by chenxin on 2014/12/16.
 */
public class ModuleInfoDto {
    @NotNull
    @Min(value = 1, message = "节点ID不合法")
    private Long nodeId; //节点ID
    @NotNull
    @Min(value = 0, message = "学时最小为0")
    private Integer period; //学时
    @NotNull
    @Range(min = 0, max = 2, message = "教学方法不合法")
    private Integer teachingMethod; //教学方法
    @NotNull
    @Min(value = 0, message = "教学周最小为0")
    private Integer teachingWeek; //教学周

    public Long getNodeId() {
        return nodeId;
    }

    public void setNodeId(Long nodeId) {
        this.nodeId = nodeId;
    }

    public Integer getPeriod() {
        return period;
    }

    public void setPeriod(Integer period) {
        this.period = period;
    }

    public Integer getTeachingMethod() {
        return teachingMethod;
    }

    public void setTeachingMethod(Integer teachingMethod) {
        this.teachingMethod = teachingMethod;
    }

    public Integer getTeachingWeek() {
        return teachingWeek;
    }

    public void setTeachingWeek(Integer teachingWeek) {
        this.teachingWeek = teachingWeek;
    }
}
